<?php
/**
 * Created by PhpStorm.
 * User: gr
 * Date: 14-8-14
 * Time: 下午7:17
 */
$modules = getModuleDict();
$table = 'out_box';
$_W['page']['title'] = '短信发送记录列表';
$module = intval($_GPC['module']);
$condition ="WHERE 1=1";
$status=getGeneStatus();
if(!empty($_GPC['mobile'])){
    $condition .= " AND mobile = {$_GPC['mobile']}";
}

$pindex = max(1, intval($_GPC['page']));
$psize = 20; //ORDER BY createtime DESC
$list = pdo_fetchall("SELECT * FROM " . tablename($table) . $condition);
$total = pdo_fetchcolumn("SELECT COUNT(*) FROM " . tablename($table) . $condition);
$pager = pagination($total, $pindex, $psize);
template('sms/message_list');
?>